package com.example.jinyu.ui;

import com.example.jinyu.R;
import com.nostra13.universalimageloader.core.ImageLoader;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class ImageShowerActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_imageshower);
		ImageView imageView =  (ImageView) findViewById(R.id.imagefullscreen);
		Intent intent = getIntent();
		String imagePath = intent.getStringExtra("imagepath");
		ImageLoader.getInstance().displayImage(imagePath, imageView);
		imageView.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				ImageShowerActivity.this.finish();
			}
		});
	}

}
